import React from "react";
import { Button, Checkbox, Form, Input } from "antd";

const SubForm = (props: any, ref: any) => {
  const form = Form.useFormInstance();
  return (
    <>
      <Form.Item label="SubName" name="SubName">
        <Input />
      </Form.Item>

      <Form.Item label="SubPassword" name="Subpassword">
        <Input.Password />
      </Form.Item>

      <Form.Item name="Subremember" valuePropName="checked" label={null}>
        <Checkbox>Remember me</Checkbox>
      </Form.Item>
      <Button onClick={() => form.submit()}>提交</Button>
    </>
  );
};

export default SubForm;
